package com.zhiyou.crud.service;

import com.zhiyou.crud.bean.Comment;
import com.zhiyou.crud.bean.Project;
import com.zhiyou.crud.bean.Type;

import java.util.List;

/**
 * @author 王冲冲
 * @version 1.0
 */
public interface ProjectService {
    List<Project> getAllProject();

    List<Project> getProject(Project project);

    Project getPerByPno(Integer pno);

    Project getProByPno(Integer pno);

    List<Comment> getCommentByPno(Integer pno);

    Project getJinDu(Integer pno);

    List<Project> getAllNoPro();

    int passProject(Project project);

    int failProject(Project project);

    List<Comment> getAllComment();

    int deleteOneComment(Integer cono);

    int addOneType(Type type);

    int deleteOneType(Integer tno);

 List<Type> getAllType();

    int updateOneType(Type type);
}
